<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGroupRuleTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('group_rule', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->comment('组名');
            $table->string('rules')->comment('权限');
            $table->enum('status', ['0','1'])->default(1)->comment('分组状态');
            $table->engine = 'InnoDB';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('group_rule');
    }
}
